/**
 * @file      itime.h
 * @copyright Copyright (c) 2020, ZCW Co., Ltd. All Rights Reserved.
 * @brief     brief
 * @author    caiwang213@qq.com
 * @date      2020-05-20 23:43:28
 *
 * @note
 *  itime.h defines
 */
#ifndef __ITIME_H__
#define __ITIME_H__
#include "os.h"
#include <time.h>

namespace log4x
{
class itime
{
public:
    virtual int        localtime(time_t& t, struct tm& tm) = 0;
    virtual char*      strptime(const char* s, const char* f, struct tm* tm) = 0;

protected:
    virtual ~itime() {}
};
}
#endif
